package bayes.nodeTypes;

public class IceSense extends Variable{

	// Domain values:
	public static final int 		SENSE_ICY		= 0;
	public static final int 		SENSE_NOT_ICY 	= 1;

	// Domain size:
	public static final int 		DOMAIN_LENGTH 	= 2;
	private static final String[] 	domainNames = new String[]{"SENSE_ICY", "SENSE_NOT_ICY"};

	private static int 				_ID = 0;
	private boolean 				_measurement;

	
	public IceSense() {
		super("IceSense_"+(_ID++),DOMAIN_LENGTH);
	}
	
	public String getDomainValName(int index){
		return domainNames[index];
	}
	
	public void setSensorMeasure(boolean measurement){
		this._measurement = measurement;
	}

	public int get_measurement() {
		return this._measurement == true ? IceSense.SENSE_ICY : IceSense.SENSE_NOT_ICY;
	}

}
